package org.itboys.core.entity.mongo;

import lombok.Data;
import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * @Author：贾琦磊
 * @Date：2018/11/27
 * @Description：发票
 */
@Data
@Entity(value = "SundayInvoice",noClassnameStored = true)
public class SundayInvoice extends BaseMongoEntity{
    /**所属用户*/
    private Long memberId;
    /**用户名称*/
    private String memberName;
    /**类型 1：电子发票 2：纸质 */
    private Integer type;
    /**抬头类型 1：个人 2：企业*/
    private Integer headType;
    /**发票抬头*/
    private String head;
    /**税号*/
    private String dutyNo;
    /**金额*/
    private String money;
    /**邮箱*/
    private String email;
    /**收件人*/
    private String name;
    /**电话*/
    private String mobile;
    /**地区*/
    private String area;
    /**地址*/
    private String address;
    /**状态 0:提交 1：已发送*/
    private Integer status;

    public SundayInvoice() {
    }

    public SundayInvoice(Long memberId,String memberName, Integer type, Integer headType, String head, String dutyNo, String money, String email, String name, String mobile,String area, String address, Integer status) {
        this.memberId=memberId;
        this.memberName=memberName;
        this.type = type;
        this.headType = headType;
        this.head = head;
        this.dutyNo = dutyNo;
        this.money = money;
        this.email = email;
        this.name = name;
        this.mobile = mobile;
        this.area=area;
        this.address = address;
        this.status = status;
    }
}
